<?php 
/**
 * MDH
 */
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"<?php if ($this->APP_LANG_RTL) : ?> dir="rtl"<?php endif; ?>>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->CHARSET; ?>" />
	<meta name="robots" content="index, follow" />
	<?php echo $this->headMeta(); ?>
	<?php echo $this->headTitle(); ?>
	<link rel="shortcut icon" type="image/x-icon" href="<?php echo $this->APP_STATIC_SERVER; ?>/skins/<?php echo $this->APP_TEMPLATE; ?>/<?php echo $this->APP_SKIN; ?>/images/favicon.ico" />
	
	<?php 
		$this->headLink()
			->prependStylesheet($this->APP_STATIC_SERVER . '/skins/' . $this->APP_TEMPLATE . '/' . $this->APP_SKIN . '/' . ($this->APP_LANG_RTL ? 'default-rtl.css' : 'default.css'))
			->prependStylesheet($this->APP_STATIC_SERVER . '/css/960/' . ($this->APP_LANG_RTL ? 'all-rtl.min.css' : 'all.min.css'));
    	
		$this->headScript()
		    	->prependFile($this->APP_STATIC_SERVER . '/js/tomato/namespace.js')
		    	->prependFile($this->APP_STATIC_SERVER . '/js/jquery/jquery.min.js')
		    	->appendFile($this->APP_STATIC_SERVER . '/js/tomato/core/widget.loader.js')
		    	->appendFile($this->APP_STATIC_SERVER . '/js/jquery.json/jquery.json.min.js')
		    	->appendFile($this->APP_STATIC_SERVER . '/js/jquery.ajaxq/jquery.ajaxq.min.js');
	?>
    
	<?php
		echo $this->compressor('css');
		echo $this->compressor('js');
	?>
	
	<script type="text/javascript">//<![CDATA[ Tomato.Core.Widget.Loader.baseUrl = '<?php echo $this->baseUrl(); ?>'; //]]></script>
</head>
<body>
	<div id="wrapper">
		<div id="header">
			<div class="container_12">
				<?php echo $this->render('_header.phtml'); ?>
			</div>
		</div>
	
		<div id="container" class="container_12">
			<?php echo $this->layoutLoader(); ?>
			<div class="clearfix"></div>
		</div>
		
		<div id="footer">
			<div class="container_12">
				<?php echo $this->render('_footer.phtml'); ?>
			</div>
		</div>
	</div>

<?php
/**
 * Put all widget's javascript to the bottom of page 
 * @since 2.0.6
 */
echo $this->compressor('js', 'bottomBody'); 
?>

<?php
/**
 * @since 2.0.3
 */
Tomato_Hook_Registry::getInstance()->executeAction('Core_PageLoaded');
?>
</body>
</html>
